package com.cyf.smartCity.bean;

/**
 * Created by cage on 2016/9/2.
 */
public class TimezoneRule {

    public static final int FIRSTFEE_ADD = 1;
    public static final int FIRSTFEE_NOT_ADD = 0;
    public static final int FREETIMETYPE_HOUR = 1;

    public static final int CFREETIMETYPE_HOUR = 1;
    public static final int CFREETIMETYPE_MINUTE = 0;

    public static final int BFREECOMP_NOT_CACULATE_FEE = 0;
    /**
     *  计费类型  1-按时计费 2-按次 3-按时间段
     */
    public static final int TYPE_HOUR = 1;
    public static final int TYPE_SECOND = 2;
    public static final int TYPE_TIME_SLOT = 3;

    public static final int INCOMPLETE_MIN_UNIT = 1;
    public static final int INCOMPLETE_FREE = 2;
    public static final int INCOMPLETE_MANUAL = 3;

    private int incomplete;     //1。 按当前时间最低单位收费、2.免费 3. 人工处理
    private String begin;  //开始时间          08:00=(8-8)*60*60    09:00=(9-8)*60*60 00:00=((24+0-8)*60*60)   01:00=(24+1-8)*60*60
    private String end;    //结束时间          08:00=(8-8)*60*60    09:00=(9-8)*60*60 00:00=((24+0-8)*60*60)   01:00=(24+1-8)*60*60
    private String realbegin;   // 计费开始时间
    private String realend;     // 计费结束时间

    private int duration;   //时长 秒
    private int type;   //计费类型  1-按时计费 否则-按次

    private int cfreeTimeType;  // 按时收费时，具体的收费单位：0是分钟 1是小时
    private int unit;           // 按时收费时，具体的收费时间，单位秒
    private int fee;        //费用        分

    private int freeTimeType;    // 免费时间类型：0是分钟 1是小时，
    private int freeTime;       //免费时间
    private int bFreeComp;      //免费时间参与计费 1 参与  0不参与

    private int maxFee;//最高收费

    private int firstHoursSwitch;//首小时开关量  0禁用 1启用
    private int firstHoursFee; //首小时 费用
    private Integer firstHoursTime;     // 首小时时间(秒)
    private int firstHoursUnit; // 首小时时间单位：1-小时 0-分钟
    private Integer firstFeeCount = FIRSTFEE_ADD; //首小时费用 累加 1-累加 0-不累加

    /**
     * 时间段计费，开始时间
     */
    private int timeSlotBegin;
    /**
     * 时间段计费，结束时间
     */
    private int timeSlotEnd;

    public Integer getFirstHoursSwitch() {
        return firstHoursSwitch;
    }

    public void setFirstHoursSwitch(Integer firstHoursSwitch) {
        this.firstHoursSwitch = firstHoursSwitch;
    }

    public int getFirstHoursFee() {
        return firstHoursFee;
    }

    public void setFirstHoursFee(int firstHoursFee) {
        this.firstHoursFee = firstHoursFee;
    }

    public int getMaxFee() {
        return maxFee;
    }

    public void setMaxFee(int maxFee) {
        this.maxFee = maxFee;
    }

    public int getIncomplete() {
        return incomplete;
    }

    public void setIncomplete(int incomplete) {
        this.incomplete = incomplete;
    }

    public int getFreeTime() {
        return freeTime;
    }

    public void setFreeTime(int freeTime) {
        this.freeTime = freeTime;
    }

    public int getbFreeComp() {
        return bFreeComp;
    }

    public void setbFreeComp(int bFreeComp) {
        this.bFreeComp = bFreeComp;
    }

    public String getBegin() {
        return begin;
    }

    public void setBegin(String begin) {
        this.begin = begin;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUnit() {
        return unit;
    }

    public void setUnit(int unit) {
        this.unit = unit;
    }

    public int getFee() {
        return fee;
    }

    public void setFee(int fee) {
        this.fee = fee;
    }

    public int getCfreeTimeType() {
        return cfreeTimeType;
    }

    public void setCfreeTimeType(int cfreeTimeType) {
        this.cfreeTimeType = cfreeTimeType;
    }

    public String getRealbegin() {
        return realbegin;
    }

    public void setRealbegin(String realbegin) {
        this.realbegin = realbegin;
    }

    public String getRealend() {
        return realend;
    }

    public void setRealend(String realend) {
        this.realend = realend;
    }

    public int getFreeTimeType() {
        return freeTimeType;
    }

    public void setFreeTimeType(int freeTimeType) {
        this.freeTimeType = freeTimeType;
    }

    public Integer getFirstHoursTime() {
        return firstHoursTime;
    }

    public void setFirstHoursTime(Integer firstHoursTime) {
        this.firstHoursTime = firstHoursTime;
    }

    public int getFirstHoursUnit() {
        return firstHoursUnit;
    }

    public void setFirstHoursUnit(int firstHoursUnit) {
        this.firstHoursUnit = firstHoursUnit;
    }

    public Integer getFirstFeeCount() {
        return firstFeeCount;
    }

    public void setFirstFeeCount(Integer firstFeeCount) {
        this.firstFeeCount = firstFeeCount;
    }

    public int getTimeSlotBegin() {
        return timeSlotBegin;
    }

    public void setTimeSlotBegin(int timeSlotBegin) {
        this.timeSlotBegin = timeSlotBegin;
    }

    public int getTimeSlotEnd() {
        return timeSlotEnd;
    }

    public void setTimeSlotEnd(int timeSlotEnd) {
        this.timeSlotEnd = timeSlotEnd;
    }
}
